package com.example.demo.service.Impl;

import com.example.demo.entity.Stranger;
import com.example.demo.mapper.user.StrangerMapper;
import com.example.demo.service.StrangerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("strangerService")
public class StrangerServiceImpl implements StrangerService {
    @Resource
    private StrangerMapper strangerMapper;

    @Override
    public List<Stranger> getStrangerList(Stranger stranger) {
        return strangerMapper.getStrangerList();
    }

    @Override
    public void addStranger(Stranger stranger) throws Exception {
        strangerMapper.insert(stranger);
    }
}
